package com.imust.springbootproject.service;

import com.imust.springbootproject.po.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface TypeService {
    public abstract Type saveType(Type type);
    public abstract Type getType(Long id);
    public abstract Page<Type> listType(Pageable pageable);
    public abstract List<Type> listType();
    public abstract List<Type> listTypeTop (Integer size);
    public abstract Type updateType(Long id, Type type);
    public abstract void deleteType(Long id);
    public abstract Type getTypeByName(String name);
}
